import request from '@/utils/request'

// 查询物资仓库列表
export function listMaterial_stock(query) {
  return request({
    url: '/material_stock/material_stock/list',
    method: 'get',
    params: query
  })
}

// 查询物资仓库详细
export function getMaterial_stock(stockId) {
  return request({
    url: '/material_stock/material_stock/' + stockId,
    method: 'get'
  })
}

// 新增物资仓库
export function addMaterial_stock(data) {
  return request({
    url: '/material_stock/material_stock',
    method: 'post',
    data: data
  })
}

// 修改物资仓库
export function updateMaterial_stock(data) {
  return request({
    url: '/material_stock/material_stock',
    method: 'put',
    data: data
  })
}

// 删除物资仓库
export function delMaterial_stock(stockId) {
  return request({
    url: '/material_stock/material_stock/' + stockId,
    method: 'delete'
  })
}
